//
//  NCalendarCollectionViewCell.swift
//  makeCalader
//
//  Created by ning on 2018/1/10.
//  Copyright © 2018年 ning. All rights reserved.
//

import UIKit

class NCalendarCollectionViewCell: UICollectionViewCell {
    @IBOutlet weak var dateButton: UIButton!
    
    var dateStr: String? //日历上该日期
    var date: Date?
    var dateComponents: DateComponents?
    var didDateButtonTapBlock:(() -> ())?
    @IBAction func didDateButtonTouchUpInside(_ sender: UIButton) {
        didDateButtonTapBlock?()
    }
}
extension NCalendarCollectionViewCell {
    func setupView()  {
        dateButton.layer.cornerRadius = dateButton.bounds.width / 2
        dateButton.layer.masksToBounds = true
    }
}
